3.35 \(\int (a+b (F^{g (e+f x)})^n)^2 \, dx\)

Optimal. Leaf size=67 \[ a^2 x+\frac {2 a b \left (F^{g (e+f x)}\right )^n}{f g n \log (F)}+\frac {b^2 \left (F^{g (e+f x)}\right )^{2 n}}{2 f g n \log (F)} \]

[Out]

a^2*x+2*a*b*(F^(g*(f*x+e)))^n/f/g/n/ln(F)+1/2*b^2*(F^(g*(f*x+e)))^(2*n)/f/g/n/ln(F)

________________________________________________________________________________________

Rubi [A]  time = 0.04, antiderivative size = 67, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.176, Rules used = {2282, 266, 43} \[ a^2 x+\frac {2 a b \left (F^{g (e+f x)}\right )^n}{f g n \log (F)}+\frac {b^2 \left (F^{g (e+f x)}\right )^{2 n}}{2 f g n \log (F)} \]

Antiderivative was successfully verified.

[In]

Int[(a + b*(F^(g*(e + f*x)))^n)^2,x]

[Out]

a^2*x + (2*a*b*(F^(g*(e + f*x)))^n)/(f*g*n*Log[F]) + (b^2*(F^(g*(e + f*x)))^(2*n))/(2*f*g*n*Log[F])

Rule 43

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 266

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Dist[1/n, Subst[Int[x^(Simplify[(m + 1)/n] - 1)*(a
+ b*x)^p, x], x, x^n], x] /; FreeQ[{a, b, m, n, p}, x] && IntegerQ[Simplify[(m + 1)/n]]

Rule 2282

Int[u_, x_Symbol] :> With[{v = FunctionOfExponential[u, x]}, Dist[v/D[v, x], Subst[Int[FunctionOfExponentialFu
nction[u, x]/x, x], x, v], x]] /; FunctionOfExponentialQ[u, x] &&  !MatchQ[u, (w_)*((a_.)*(v_)^(n_))^(m_) /; F
reeQ[{a, m, n}, x] && IntegerQ[m*n]] &&  !MatchQ[u, E^((c_.)*((a_.) + (b_.)*x))*(F_)[v_] /; FreeQ[{a, b, c}, x
] && InverseFunctionQ[F[x]]]

Rubi steps

\begin {align*} \int \left (a+b \left (F^{g (e+f x)}\right )^n\right )^2 \, dx &=\frac {\operatorname {Subst}\left (\int \frac {\left (a+b x^n\right )^2}{x} \, dx,x,F^{g (e+f x)}\right )}{f g \log (F)}\\ &=\frac {\operatorname {Subst}\left (\int \frac {(a+b x)^2}{x} \, dx,x,\left (F^{g (e+f x)}\right )^n\right )}{f g n \log (F)}\\ &=\frac {\operatorname {Subst}\left (\int \left (2 a b+\frac {a^2}{x}+b^2 x\right ) \, dx,x,\left (F^{g (e+f x)}\right )^n\right )}{f g n \log (F)}\\ &=a^2 x+\frac {2 a b \left (F^{g (e+f x)}\right )^n}{f g n \log (F)}+\frac {b^2 \left (F^{g (e+f x)}\right )^{2 n}}{2 f g n \log (F)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.04, size = 52, normalized size = 0.78 \[ a^2 x+\frac {b \left (F^{g (e+f x)}\right )^n \left (4 a+b \left (F^{g (e+f x)}\right )^n\right )}{2 f g n \log (F)} \]

Antiderivative was successfully verified.

[In]

Integrate[(a + b*(F^(g*(e + f*x)))^n)^2,x]

[Out]

a^2*x + (b*(F^(g*(e + f*x)))^n*(4*a + b*(F^(g*(e + f*x)))^n))/(2*f*g*n*Log[F])

________________________________________________________________________________________

fricas [A]  time = 0.43, size = 61, normalized size = 0.91 \[ \frac {2 \, a^{2} f g n x \log \relax (F) + 4 \, F^{f g n x + e g n} a b + F^{2 \, f g n x + 2 \, e g n} b^{2}}{2 \, f g n \log \relax (F)} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*(F^(g*(f*x+e)))^n)^2,x, algorithm="fricas")

[Out]

1/2*(2*a^2*f*g*n*x*log(F) + 4*F^(f*g*n*x + e*g*n)*a*b + F^(2*f*g*n*x + 2*e*g*n)*b^2)/(f*g*n*log(F))

________________________________________________________________________________________

giac [A]  time = 0.49, size = 77, normalized size = 1.15 \[ \frac {4 \, F^{f g n x} F^{g n e} a b + F^{2 \, f g n x} F^{2 \, g n e} b^{2} + 2 \, a^{2} \log \left ({\left | F \right |}^{f g n x} {\left | F \right |}^{g n e}\right )}{2 \, f g n \log \relax (F)} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*(F^(g*(f*x+e)))^n)^2,x, algorithm="giac")

[Out]

1/2*(4*F^(f*g*n*x)*F^(g*n*e)*a*b + F^(2*f*g*n*x)*F^(2*g*n*e)*b^2 + 2*a^2*log(abs(F)^(f*g*n*x)*abs(F)^(g*n*e)))
/(f*g*n*log(F))

________________________________________________________________________________________

maple [A]  time = 0.02, size = 90, normalized size = 1.34 \[ \frac {a^{2} \ln \left (\left (F^{\left (f x +e \right ) g}\right )^{n}\right )}{f g n \ln \relax (F )}+\frac {2 a b \left (F^{\left (f x +e \right ) g}\right )^{n}}{f g n \ln \relax (F )}+\frac {b^{2} \left (F^{\left (f x +e \right ) g}\right )^{2 n}}{2 f g n \ln \relax (F )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*(F^((f*x+e)*g))^n+a)^2,x)

[Out]

1/2/g/f/ln(F)/n*b^2*((F^((f*x+e)*g))^n)^2+2*a*b*(F^((f*x+e)*g))^n/f/g/n/ln(F)+1/g/f/ln(F)/n*a^2*ln((F^((f*x+e)
*g))^n)

________________________________________________________________________________________

maxima [A]  time = 1.19, size = 75, normalized size = 1.12 \[ a^{2} x + \frac {2 \, {\left (F^{f g x}\right )}^{n} {\left (F^{e g}\right )}^{n} a b}{f g n \log \relax (F)} + \frac {{\left (F^{f g x}\right )}^{2 \, n} {\left (F^{e g}\right )}^{2 \, n} b^{2}}{2 \, f g n \log \relax (F)} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*(F^(g*(f*x+e)))^n)^2,x, algorithm="maxima")

[Out]

a^2*x + 2*(F^(f*g*x))^n*(F^(e*g))^n*a*b/(f*g*n*log(F)) + 1/2*(F^(f*g*x))^(2*n)*(F^(e*g))^(2*n)*b^2/(f*g*n*log(
F))

________________________________________________________________________________________

mupad [B]  time = 3.72, size = 75, normalized size = 1.12 \[ \frac {\frac {b^2\,{\left (F^{e\,g+f\,g\,x}\right )}^{2\,n}}{2}+2\,a\,b\,{\left (F^{e\,g+f\,g\,x}\right )}^n}{f\,g\,n\,\ln \relax (F)}+\frac {a^2\,\ln \left (F^{g\,\left (e+f\,x\right )}\right )}{f\,g\,\ln \relax (F)} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b*(F^(g*(e + f*x)))^n)^2,x)

[Out]

((b^2*(F^(e*g + f*g*x))^(2*n))/2 + 2*a*b*(F^(e*g + f*g*x))^n)/(f*g*n*log(F)) + (a^2*log(F^(g*(e + f*x))))/(f*g
*log(F))

________________________________________________________________________________________

sympy [A]  time = 0.18, size = 94, normalized size = 1.40 \[ a^{2} x + \begin {cases} \frac {4 a b f g n \left (F^{g \left (e + f x\right )}\right )^{n} \log {\relax (F )} + b^{2} f g n \left (F^{g \left (e + f x\right )}\right )^{2 n} \log {\relax (F )}}{2 f^{2} g^{2} n^{2} \log {\relax (F )}^{2}} & \text {for}\: 2 f^{2} g^{2} n^{2} \log {\relax (F )}^{2} \neq 0 \\x \left (2 a b + b^{2}\right ) & \text {otherwise} \end {cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*(F**(g*(f*x+e)))**n)**2,x)

[Out]

a**2*x + Piecewise(((4*a*b*f*g*n*(F**(g*(e + f*x)))**n*log(F) + b**2*f*g*n*(F**(g*(e + f*x)))**(2*n)*log(F))/(
2*f**2*g**2*n**2*log(F)**2), Ne(2*f**2*g**2*n**2*log(F)**2, 0)), (x*(2*a*b + b**2), True))

________________________________________________________________________________________